<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'employeecontacts-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'empno'); ?>
            <div class="model-data">
                <?=$model->empno;?>
            </div>
                <?php echo $form->hiddenField($model,'empno');?>
		<?php echo $form->error($model,'empno'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'contactname'); ?>
		<?php echo $form->textField($model,'contactname',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'contactname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>1000)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'phonework'); ?>
		<?php echo $form->textField($model,'phonework',array('size'=>12,'maxlength'=>12)); ?>
		<?php echo $form->error($model,'phonework'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'workextention'); ?>
		<?php echo $form->textField($model,'workextention',array('size'=>6,'maxlength'=>6)); ?>
		<?php echo $form->error($model,'workextention'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'phonehome'); ?>
		<?php echo $form->textField($model,'phonehome',array('size'=>12,'maxlength'=>12)); ?>
		<?php echo $form->error($model,'phonehome'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'phonemobile'); ?>
		<?php echo $form->textField($model,'phonemobile',array('size'=>12,'maxlength'=>12)); ?>
		<?php echo $form->error($model,'phonemobile'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'salutation'); ?>
		<?php echo $form->textField($model,'salutation',array('size'=>40,'maxlength'=>40)); ?>
		<?php echo $form->error($model,'salutation'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'title'); ?>
		<?php echo $form->textField($model,'title',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'title'); ?>
	</div>

	<div class="row_buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->